
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="white">
    <title>{{ config('app.name') }}</title>
	<link rel="shortcut icon" href="{{ asset('/images/favicon.ico') }}" />
	<link rel="bookmark" href="{{ asset('/images/favicon.ico') }}" type="image/x-icon"　/>
    <link href="{{ asset('/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="{{ asset('css/shouye/header.css') }}"/>
	<script type="text/javascript" src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
	<script type="text/javascript" src="{{ asset('js/jquery-1.9.1.min.js') }}"></script>
	<script type="text/javascript" src="{{ asset('js/tab.js') }}"></script>
	<script type="text/javascript" src="{{ asset('js/modal.js') }}"></script>

<!--  header  -->
<div class="v_header" style="position: absolute;top:0;left:0" >
    
	<!-- 一 -->
    <div class="v_headerTop">
        <div class="v_headerTopB">
           
			<div class="topLtile">欢迎来到蜘蛛比分，开启您的体育之旅！</div>
            
            <div class="topLR">
				
				@if( session('user_name') )
					
					<div class="lr_f lr_f_username">
						<a class="mbile_text hovecolorl" href="{{ url('/personNal') }}">
							{{ session('user_name') }}
						</a>
						<div class="m_inbox"></div>
						<div class="mbile_hidde">
							<i><span></span></i>
							<ul>
                                <li><a href="{{ url('/recharge') }}">充值中心</a></li>
								<li><a href="{{ url('/personNal') }}">个人中心</a></li>
								<li><a href="{{ url('/articleManage') }}">文章管理</a></li>
								<li><a href="{{ url('/new_article') }}">文章发表</a></li>
								<li><a href="{{ url('/mycollect') }}">我的收藏</a></li>
							</ul>

						</div>
					</div>
					
					<div class="lr_f">
						<a class="mbile_text hovecolorl" href="{{ url('/loginOut') }}">退出</a>
						<div class="m_inbox"></div>
					</div>
				
				@else
					
					<div class="lr_f">
                        {{--<wb:login-button type="3,2" onlogin="login" onlogout="logout">登录按钮</wb:login-button>--}}
                        {{--<a href="{{ url('/weibo') }}" class="mbile_text hovecolorl"> 微博登陆&nbsp;&nbsp; | &nbsp;&nbsp; </a>--}}
                        {{--<div class="m_inbox"></div>--}}

						<a type="button" id="loginLogin" class="mbile_text hovecolorl" data-toggle="modal" data-target="#login"> 登陆 </a>
						<div class="m_inbox"></div>
						
						<a type="button" id="regLogin" class="mbile_text hovecolorl" data-toggle="modal" data-target="#login">&nbsp;&nbsp; | &nbsp;&nbsp; 注册 </a>
						<div class="m_inbox"></div>
						
						<a type="button" id="articlelogin" class="mbile_text hovecolorl" data-toggle="modal" data-target="#login">&nbsp;&nbsp; | &nbsp;&nbsp;发表文章</a>
						<div class="m_inbox"></div>
						
						@include('common.login')
						
					</div>
					
				@endif
				
            </div>
        </div>
    </div>
    
   
	<!-- 二 -->
    <div class="v_headerBottom">
        
		<div class="v_headbox">
            
			<!-- logo -->
			<div class="homeicoo">
				<a href='{{ url('/') }}' >
					<img src="{{ asset('/images/logo.jpg') }}" style="width:95%;" />
				</a>
            </div>

			<!-- 导航 -->
            <div class="homenav" style="margin-left: 25px;">
                <ul id="nav_home">
                    <li id="index" >
						<i></i>
                        <a href="{{ url('/') }}">首页</a>
                    </li>
                    <li>
						<i></i>
                        <a href="{{ url('/newsList/all/tag') }}">资讯</a>
                    </li>
                    <li>
						<i></i>
                        <a href="{{ url('/photoList') }}">图库</a>
                    </li>
					<li>
						<i></i>
                        <a href="{{ url('/footClub') }}">球吧</a>
                    </li>
					<li>
						<i></i>
                        <a href="{{ url('/recommendlist') }}">推荐</a>
                    </li>
					<li>
						<i class="nav_last"></i>
                        <a href="{{ url('/database') }}">资料库</a>
                    </li>
					
                </ul>
		   </div>
		   
		   <!-- 搜索框 -->
		   <div class="header-seach">				
				<div class="col-lg-12" style="padding:0">
					<div class="input-group">
						
						<span class="input-group-btn">
							<select name="selectType" class="btn btn-default" style="width:70px;height:40px;padding:3px">
								@if( session('commonSelect') && session('commonSelect')=='1' )
									<option value="1" selected >资讯</option>
									<option value="2" >球吧</option>
								@elseif( session('commonSelect') && session('commonSelect')=='2' )
									<option value="1"  >资讯</option>
									<option value="2" selected >球吧</option>
								@else
									<option value="1" >资讯</option>
									<option value="2" >球吧</option>
								@endif
								
							</select> 
						</span>
						
						<!-- {{ session('commonSearch') }} -->
						<form method="post" id="commonForm" action="{{ url('/news/list') }}"   >
							
							{{ csrf_field() }}
							<input type="text" name="keyTitle" class="form-control" autocomplete="off" placeholder="请输入相关标题进行查找..." value="" style="height:40px" />
							
						</form>
						
						<span class="input-group-btn">
							<button id="search" class="btn btn-default" type="button"  style="height:40px;  font-weight: normal;">搜索</button>
						</span>
					</div><!-- /input-group -->
				  </div><!-- /.col-lg-6 -->
        </div>
  
  </div>
    
	</div>
	
	<script>
	
	$(document).ready(function(){
        $("#nav_home li a").each(function(){
            $this = $(this);
            if($this[0].href==String(window.location)){
                $this.addClass("hover");
				$this.siblings('i').show();
            }
        });
    });
	
	$(function(){
		
		// 1. 一加载页面先设置 默认选择框 对应的提交地址
		var type = $("select option:selected").val();
		switch(type)
		{
			case '1':
				// 资讯
				$("#commonForm").attr('action',"{{ url('/newsList/all/tag') }}");
			break;
			case '2':
				// 球吧
				$("#commonForm").attr('action',"{{ url('/footClub') }}");
			break;
		}
		
		// 2. 改变下拉框时 改变提交地址
		$("select").change(function(){
			// 获取 类型
			var selectType = $("select option:selected").val();
			switch(selectType)
			{
				case '1':
					// 资讯
					$("#commonForm").attr('action',"{{ url('/news/list') }}");
				break;
				case '2':
					// 球吧
					$("#commonForm").attr('action',"{{ url('/footClub') }}");
				break;
			}
		})
		
		// 3. 点击 搜索按钮
		$("#search").click(function(){
			// 提交 表单
			$("#commonForm").submit();
		});
	})
	</script>
	




